import java.util.Stack;

public class Test {

    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        int x = myStack.pop();
        System.out.println(x);
        x = myStack.peek();
        System.out.println(x);
        x = myStack.pop();
        System.out.println(x);

        boolean flg = myStack.Empty();
        System.out.println(flg);
        myStack.pop();
        flg = myStack.Empty();
        System.out.println(flg);
    }
}
